package com.cloud.alibaba.domain;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author 刘志强
 * @date 2020/11/17 13:39
 */
@RefreshScope
@Component
@Slf4j
public class Author {
    @Value("${author.userName}")
    private String userName;

    @Value("${author.mailbox}")
    private String mailbox;

    @Value("${author.weChat}")
    private String weChat;

    @Override
    public String toString() {
        return "Author{" +
                "userName='" + userName + '\'' +
                ", mailbox='" + mailbox + '\'' +
                ", weChat='" + weChat + '\'' +
                '}';
    }
}
